<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<!--<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/reset.css" />-->
<!--<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/text.css" />-->
<load href='__PUBLIC__/Css/style.css' />
<!--<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/960.css" />-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
<script type="text/javascript" src="__PUBLIC__/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.cookie.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.tools.min.js"></script>
<load href="__PUBLIC__/Js/common.js" /> 
<!--<load href="__PUBLIC__/Js/Util/ImageLoader.js" />-->
<load href="__PUBLIC__/Js/editor/kindeditor-min.js" />
<load href="__PUBLIC__/fancybox2/jquery.fancybox.pack.js" />
<load href="__PUBLIC__/fancybox2/jquery.fancybox.css" />
<load href="__PUBLIC__/Js/jquery.bgiframe.js" /> 
<load href="__PUBLIC__/Js/popdiv.js" /> 
<!--[if IE 6]>
<script src="__PUBLIC__/Js/DD_belatedPNG_0.0.8a-min.js" type="text/javascript"></script>
<![endif]-->   
<title>{$title}[香洲区学校后勤信息管理系统]</title> 
<style type="text/css" media="all"> 
.dlg{ height:520px; width:930px; top:2px; position:static; float:left;}/*弹出详情窗口大小*/
.dlg1{ height:500px; width:910px; float:left;}/*弹出详情窗口大小*/
#main{
	margin:0 auto; background:#FFF; padding:0px 20px;
	height:100%;  
	}
html{
	padding:0px; margin:0px; overflow-x:hidden; min-height:100%;
}
body{
	color:#FFF;text-align:left;
	/*background:url("__PUBLIC__/bgpic/bg2.jpg") repeat-x top; */
	border-top: 5px solid #000; margin:0 auto;
	color: #000;
	font-size: 12px;
	padding: 0px; margin:0px auto; min-height:100%;
}
.hide{ display:none;}
.hidescroll{ overflow:hidden;}
.alt{
        background:#ecf6fc;  /*这行将给所有的tr加上背景色*/
} 
.over{
        background:#bcd4ec;  /*这个将是鼠标高亮行的背景色*/
		cursor:pointer;
}
.bg_green{background-color:#C8F8A5;}
.selected{background:#C8F8A5;}
* {
	margin:0;
	padding:0;
}
ul,li{
	list-style:none;
}
.hand{ cursor:pointer;}
.tooltip {
    background-color:#000;
    border:1px solid #fff;
    padding:10px 15px;
    width:200px;
    display:none;
    color:#fff;
    text-align:left;
    font-size:12px;
 
    /* outline radius for mozilla/firefox only */
    -moz-box-shadow:0 0 10px #000;
    -webkit-box-shadow:0 0 10px #000;
}
.error {
  /* supply height to ensure consistent positioning for every browser */
  height:35px;
  background-color:#FFFE36;
  border:1px solid #E1E16D;
  font-size:11px;
  color:#000;
  padding:3px 10px;
  margin-left:-2px;
 

  /* CSS3 spicing for mozilla and webkit */
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
  -moz-border-radius-bottomleft:0;
  -moz-border-radius-topleft:0;
  -webkit-border-bottom-left-radius:0;
  -webkit-border-top-left-radius:0;
 
  -moz-box-shadow:0 0 6px #ddd;
  -webkit-box-shadow:0 0 6px #ddd;
}
/* pure CSS arrow */
.error em {
  display:block;
  width:0;
  height:0;
  border:10px solid;
  border-color:#FFFE36 transparent transparent;
 
  /* positioning */
  position:absolute;
  bottom:-17px;
  left:60px;
  }
  
#webmenu {
	height:37px; font-size:14px;
	background:#333;
	font-size:1.3em;
	text-align:center;
	font-size:17px;
	width:100%;
	position:fixed;	
	top: 0px;
}
*html #webmenu{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
#webmenu a {
	color:#FFF;
	text-decoration:none;
}
#webmenu a {
	/*font-size:14px;*/
	font-size:0.7em;
}
#webmenu li ul {
	display:none;
}
#webmenu li ul li {
	float:none;
}
*html #webmenu li ul li {
	display:inline;
}
#webmenu li ul a {
	float:none;
	height:32px;
	line-height:32px;
	padding:0 10px;
	text-transform:capitalize;
}
#webmenu .height-auto {
	line-height:15px;
	padding:5px 10px;
}
.second-menu, .third-menu, .fourth-menu {
	position:absolute;
}
.first-menu li {
	float:left;
	position:relative;
}
.first-menu a {
	float:left;
	display:block;
	padding:0 10px;
	height:35px;
	line-height:35px;
	background:#333;
	border-top:1px solid #4a4a4a;
	border-left:1px solid #4a4a4a;
	border-bottom:1px solid #242424;
	border-right:1px solid #242424;
	font-size:.7em;
}
.first-menu a:hover {
	background:#4698ca;
	border-top:1px solid #5db1e0;
	border-left:1px solid #5db1e0;
}
.second-menu {
	top:37px;
	right:0;
}
*html .second-menu {
	right:-1px;
}
.second-menu a {
	font-size:11px;
}
.second-menu a.arrow {
	background:#3a3a3a url(__PUBLIC__/Images/menuArrow.gif) no-repeat right top;
}
.second-menu a.arrow:hover {
	background:#4698ca url(__PUBLIC__/Images/menuArrow.gif) no-repeat right -32px;
}
.second-menu a.arrow-02 {
	background:#3a3a3a url(__PUBLIC__/Images/menuArrow.gif) no-repeat right -64px;
}
.second-menu a.arrow-02:hover {
	background:#4698ca url(__PUBLIC__/Images/menuArrow.gif) no-repeat right -110px;
}
.third-menu, .fourth-menu {
	width:177px;
	top:0;
	left:177px;
}
.third-menu a {
	background:#4c4c4c;
	font-weight:normal;
	border-top:1px solid #595959;
	border-left:1px solid #595959;
	border-bottom:1px solid #333;
	border-right:1px solid #333;
}
#subMgm {
	width:177px;
}
#subMgm .third-menu {
	left:177px;
}
#subMgm .fourth-menu {
	left:177px;
}
#subDwgl, #subAqxx {
	width:177px;
}


#popSchool{width:550px; height:300px; padding:5px; background-color:#eee; border:solid thin #ccc;}
#popSchool ul{float:left; width:550px; background-color:#eee;}
#tList li{ list-style:none; float:left; width:100px; height:30px; line-height:30px; margin:3px 5px; padding:3px 10px; font-weight:bold;}
#sList li{ list-style:none; float:left; width:100px; height:25px; line-height:25px; margin:0 0; padding:1px 5px; overflow:hidden;}

.fancybox-outer{}
.title1{ width:250px; height:26px; font-size:18px; float:left;}
</style>
<!--[if lt IE 8>
<script type="text/javascript" src="__PUBLIC__/PIE/PIE.js"></script>
<![endif]-->
<script type=text/javascript>
var editor;
var windowW,windowH;
windowW = '95%';
windowH = '95%';
if($.browser.version<7){
	windowW = 900;
	windowH = 550;
}
$(function(){
	$('#webmenu li').hover(function(){
		$(this).children('ul').stop(true,true).show('slow');
	},function(){
		$(this).children('ul').stop(true,true).hide('slow');
	});
	
	$('#webmenu li').hover(function(){
		$(this).children('div').stop(true,true).show('slow');
	},function(){
		$(this).children('div').stop(true,true).hide('slow');
	});
});
<!--
//指定当前组模块URL地址 
var URL = '__URL__';
var APP	 =	 '__APP__';
var PUBLIC = '__PUBLIC__';
/*ThinkAjax.image = [	 '__PUBLIC__/Images/loading2.gif', '__PUBLIC__/Images/ok.gif','__PUBLIC__/Images/update.gif' ]
ImageLoader.add("__PUBLIC__/Images/bgline.gif","__PUBLIC__/Images/bgcolor.gif","__PUBLIC__/Images/titlebg.gif","__PUBLIC__/bgpic/bg2.jpg");
ImageLoader.startLoad();
jQuery.noConflict();*/
$.tools.validator.localize("zh", {
	'*'			: '验证未通过，请检查数据正确性',
	':email'  	: '邮箱格式不对',
	':number' 	: '只能输入数字',
	':url' 		: '网址格式不对',
	'[max]'	 	: '数值大小不对, 最大值为 $1',
	'[min]'		: '数值大小不对, 最小值为 $1',
	'[required]'	: '此项为必输项目'
});

//-->

//采用juqery后重写 del 和foreverdel
function del(id){
	var keyValue;
	if (id)
	{
	keyValue = id;
	}else {
	keyValue = getSelectCheckboxValues();
	}
	if (!keyValue)
	{
	alert('请选择删除项！');
	return false;
	}
	if (window.confirm('确实要删除选择项吗？'))
	{
	$.post("__URL__/delete/","id="+keyValue+'&ajax=1',function(data){
			$.messager.show({title:'提示信息',msg:data.info,timeout:2000,showType:'slide'});
			window.location.reload();
		}//function
		,"json");//post	
	}
} 
//永久删除
function foreverdel(id){
	var keyValue;
	if (id)
	{
	keyValue = id;
	}else {
	keyValue = getSelectCheckboxValues();
	}
	if (!keyValue)
	{
	alert('请选择删除项！');
	return false;
	}
	if (window.confirm('确实要永久删除选择项吗？'))
	{
	$.post("__URL__/foreverdelete/","id="+keyValue+'&ajax=1',function(data){
			$.messager.show({title:'提示信息',msg:data.info,timeout:2000,showType:'slide'});
			window.location.reload();
		}//function
		,"json");//post	
	}
} 
//显示编辑器，n控件名，w宽度，h高度，将div_n的html()内容自动加载为编辑器内容
function showEditor(n,w,h){
	var ww = w>0?w:880;
	var hh = h>0?h:500;
	jQuery('#div_'+n).html("<TEXTAREA class=''  name='"+n+"' id='"+n+"'>"+$('#div_'+n).html()+"</textarea>");
	edt = KindEditor.create('textarea[name='+ n +']', {
		width:'100%',height:hh+'',allowFileManager:true,
		items : [
			'source','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
			'insertunorderedlist', '|', 'emoticons', 'image', 'link','flash','media','insertfile','map']
	});	
	return edt;
}
//保存导出Excel//model模块名/title显示标题/eType输出文件类型Excel5,Excel2007/fieldString输出字段列表/titleString输出字段标题列表
function saveExcel(){
	$('#showExcelDiv').dialog({
		onOpen:function(){
			$('html').addClass('hidescroll');},
		onClose:function(){
			$('html').removeClass('hidescroll');},
		modal:true,title:"导出电子表格对话框",width:'95%',height:'95%',resizable:true,
		buttons:[{
			text:'保存',iconCls:'icon-ok',
			handler:function(){
				var m		= $('#modelName').val();
				var f		= $('#form2 input:checked[type=checkbox]');
				var title		= $('#t_title').val();
				var eType	= $('input:checked[name=eType]').val();
				var fieldString='',titleString='';
				var l		= $('#begineLine').val();//数据从第几行开始显示数据，默认为第三行，（第一行标题，第二行字段）
				l = l>0?l:3;
				jQuery.each(f, function(i, field){
					v	= field.value;//取得所有要显示的字段名列表
					t	= $('#t_'+v).val();//取得所有要显示的显示标题列表
					fieldString += v+',';
					titleString += t+',';
				});
				fieldString=fieldString.substring(0,fieldString.length-1);
				titleString=titleString.substring(0,titleString.length-1); 
				url = URL+"/saveExcel/model/"+ m +"/bl/"+ l +"/title/"+encodeURI(title)+"/eType/"+eType+"/fieldString/"+fieldString+"/titleString/"+titleString;
				goUrl(url);return false;
			}//handler
		},{
			text:'关闭',handler:function(){
				$('#showExcelDiv').dialog('close');
			}
		}]
	});	
}
function goUrl(x){       
     window.location.href=x;       
}      
function getLocalTime(nS) {   
        //return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');   
		//return new Date(parseInt(nS) * 1000).toLocaleString().substr(0,17);
		//return new Date(parseInt(nS) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
		//return new Date(parseInt(nS) * 1000).getFullYear()+'-';
		t = new Date(parseInt(nS) * 1000);
		return t.getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate();
} 
//showDetails,showFancybox弹出显示框，主要用于index页面的详细信息显示，a为jquery选择器对象如a = $('#hideImage a');，t为标题，如'效果图片‘
function showDetails(i,ff){
	//i为要读取的ID,f为要读取的字段，t为显示的标题
	f = ff?ff:$('#showField').val();
	t = $('#showFieldTitle').val();
	$.post('__URL__/myGetField/',{id:i,f:f},function(d){
		$('#hideDiv').html(d.data);
		if($('#hideDiv img').length>0){
			img = $('#hideDiv img').detach();//将返回数据的图片取出放入hideImage中
			$('#hideImage').html(img);
			$('#hideImage img').each(function(i){
				src	= this.src;	
				title	= this.alt+"<br>"+$('#hideDiv').html();	//标题由a标签的alt和html()里面的
				if(!$(this).parent().is('a')){
					$(this).wrap("<a href='"+ src +"' class='iGallay' rel='pmt' title='"+ title +"'></a>");
				}
			})//each
			a = $('#hideImage a');
		}else{
			$('#hideDiv').html($('#hideDiv').html()).width(555);
			a = $('#hideDiv');
		}
		//alert($('#hideDiv').html());
		showFancybox(a,t);
	},'json')
}

function showFancybox(a,t){
	if(a.size()>0){
		$.fancybox( a ,{fitToView:true,openEffect:'fade',loop:false,autoScale:true,minWidth:610,
			helpers:{title:{type:'inside' }},
			afterLoad : function() {
				this.title = '['+t+' ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' ] ' + this.title : '');
			}//function
		});	//fancybox
	}else{
		$.messager.show({title:'提示信息',msg:'没有查询到有相关信息！',timeout:2000,showType:'slide'});	
	}
} 

function lockAll(status){
	$.messager.confirm('确认窗口', status==0?'是否锁定所有学校?':'是否解锁所有学校?', function(r){
		if (r){
			$.post("__URL__/lockAll/",'status='+status,function(data){
				$.messager.show({title:'提示信息',msg:data.info,timeout:2000,showType:'slide'});
				window.location.reload();
			}//function
			,"json");//post	
		}
	});	
}
</script>
</head>
<body>
<input name="userdwid" type="hidden" value="{$Think.session.dwid}" id="userdwid"/>
<ul id="webmenu" class="first-menu">
<!--  <li><a href="__APP__/School/" target="_self">单位管理</a>
    <ul style="display: none;" id="subDwgl" class="second-menu">
      <li><a href="__APP__/School/" class="" target="_self">单位信息</a></li>
      <li><a href="__APP__/Bdc/" class="" target="_self">不动产管理</a></li>   
    </ul>
  </li>-->
  <li><a href="__APP__" style="color:#ff0; background:none; border:none;" target="_self">首页</a></li>
  <li><a href="__APP__/School/" target="_self">单位管理</a></li>
  <li><a href="__APP__/Bdc/">不动产</a></li>
  <li><a href="__APP__/Aqxx/" target="_self">安全信息</a>
    <ul style="display: none;" id="subAqxx" class="second-menu">
      <li><a href="__APP__/Aqyj/" target="_self">安全预警</a></li>   
    </ul>
  </li>
  <li><a href="__APP__/St/">食堂管理</a></li>
<eq name="Think.session.dwid" value="0">
  <li><a href="__APP__/Jywy/">教育物业</a></li>
  <li><a href="__APP__/Tgjg/">托管机构</a></li>
</eq>
  <li><a href="__APP__/Xegc/">小额工程</a></li>
  <li><a href="__APP__/Zzwy/">招租物业</a></li>
  <li><a href="__APP__/Xsaq/">校舍安全</a></li>
  <li><a href="__APP__/Nh/">能源消耗</a></li>
  
  <li style="float:right">
    <a href="__APP__/Public/logout/"><img SRC="__PUBLIC__/Images/error.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle"> 退 出</a>
  </li>
  <li style="float:right"><a href="#">欢迎！{$Think.session.loginUserName}</a>
    <ul style="display: none;" id="subDwgl" class="second-menu">
      <li><a href="__APP__/Public/password/"><img src="__PUBLIC__/Images/checked_out.png" width="16" height="16" border="0" alt="" align="absmiddle"> 修改密码</a></li>
      <li><a href="__APP__/Public/profile/"><img SRC="__PUBLIC__/Images/write.gif" WIDTH="17" HEIGHT="16" BORDER="0" ALT="" align="absmiddle"> 修改资料</a> </li>   
<eq name="Think.session.administrator" value="true">
      <li><a href="__ROOT__/admin.php" target="_blank"><img SRC="__PUBLIC__/Images/gohome.gif" WIDTH="17" HEIGHT="16" BORDER="0" ALT="" align="absmiddle"> 后台管理</a> </li>  
</eq>
    </ul>
  </li> 
</ul><br /><br />